package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the test table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="test"
 */

public abstract class BaseTest  implements Serializable {

	public static String REF = "Test";
	public static String PROP_TYPE = "Type";
	public static String PROP_MENUID = "Menuid";
	public static String PROP_POSTTIEM = "Posttiem";
	public static String PROP_TITLE = "Title";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";
	public static String PROP_USERNAME = "Username";
	public static String PROP_DEPTNAME = "Deptname";


	// constructors
	public BaseTest () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTest (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private String content;
	private java.lang.String deptname;
	private java.lang.String menuid;
	private java.lang.String posttiem;
	private java.lang.String title;
	private java.lang.String type;
	private java.lang.String username;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CONTENT
	 */
	public String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: DEPTNAME
	 */
	public java.lang.String getDeptname () {
		return deptname;
	}

	/**
	 * Set the value related to the column: DEPTNAME
	 * @param deptname the DEPTNAME value
	 */
	public void setDeptname (java.lang.String deptname) {
		this.deptname = deptname;
	}



	/**
	 * Return the value associated with the column: MENUID
	 */
	public java.lang.String getMenuid () {
		return menuid;
	}

	/**
	 * Set the value related to the column: MENUID
	 * @param menuid the MENUID value
	 */
	public void setMenuid (java.lang.String menuid) {
		this.menuid = menuid;
	}



	/**
	 * Return the value associated with the column: POSTTIEM
	 */
	public java.lang.String getPosttiem () {
		return posttiem;
	}

	/**
	 * Set the value related to the column: POSTTIEM
	 * @param posttiem the POSTTIEM value
	 */
	public void setPosttiem (java.lang.String posttiem) {
		this.posttiem = posttiem;
	}



	/**
	 * Return the value associated with the column: TITLE
	 */
	public java.lang.String getTitle () {
		return title;
	}

	/**
	 * Set the value related to the column: TITLE
	 * @param title the TITLE value
	 */
	public void setTitle (java.lang.String title) {
		this.title = title;
	}



	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: USERNAME
	 */
	public java.lang.String getUsername () {
		return username;
	}

	/**
	 * Set the value related to the column: USERNAME
	 * @param username the USERNAME value
	 */
	public void setUsername (java.lang.String username) {
		this.username = username;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.Test)) return false;
		else {
			com.lovejes.app.domain.Test test = (com.lovejes.app.domain.Test) obj;
			if (null == this.getId() || null == test.getId()) return false;
			else return (this.getId().equals(test.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}